<a href="/details/{$product->code()}">
	{if $product->discount()}
		<div class="box-sale">
			<img class="png" width="98" height="97" alt="" src="/images/bg-sale.png">
		</div>
	{else if $product->isInGroup('new')}
		<div class="box-new">
			<img class="png" width="97" height="96" alt="" src="/images/bg-new.png">
		</div>
	{/if}
	<div class="img-box">
		{if $product->image()}
			<img src="{thumbnail width=188 height=134}{$product->image()}{/thumbnail}" alt='{$product->fullName()|escape}' title='{$product->fullName()|escape}' />
		{/if}
	</div>
</a>
<strong><a href="/details/{$product->code()}">{$product->fullName()}</a></strong>
{if $product->rating()}
	<ul class="star-rating" title='{$product->rating()}/5'>
		{for $star=1 to $product->rating()|intval}
			<li><img src="/images/star1.gif" width="12" height="11" /></li>
		{/for}
		<li>
			{$decimal = ($product->rating() - $product->rating()|floor) * 10 }
			{if $decimal == 0}
				<img src="/images/star2.gif" width="12" height="11" />
			{elseif $decimal < 5}
				<img src="/images/star1_25.gif" width="12" height="11" />
			{elseif $decimal == 5}
				<img src="/images/star1_50.gif" width="12" height="11" />
			{elseif $decimal > 5}
				<img src="/images/star1_75.gif" width="12" height="11" />
			{/if}
		</li>
		{for $star=$product->rating()|intval+2 to 5}
			<li><img src="/images/star2.gif" width="12" height="11" /></li>
		{/for}
	</ul>
{/if}

<div class="price-box">
	<dl>
		<dt><span>{$product->price('integral')}</span>.{$product->price('fractional')}</dt>
		<dd>руб</dd>
	</dl>
	<form class="btn-form">
		<fieldset>
			<div class="text">
				<input type=hidden name='id' value='{$product->id()}' />
				<input type=text name='amount' value='1' />
			</div>
			<input type='submit' class="submit" value="КУПИТЬ" />
		</fieldset>
	</form>
</div>